<?php
$page_group_id=$_GET['group_id'];
$query = "DELETE FROM tbl_page WHERE page_status=0 AND page_group_id='$page_group_id' ";
Db::mysql_query ( $query, FETCH_MODE_NONE );
$query = "INSERT INTO tbl_page(page_group_id,page_status,page_create_time) VALUES ('$page_group_id',0,".time().")";
Db::mysql_query ( $query, FETCH_MODE_NONE );
$id=mysql_insert_id();
Common::header_location(null,"popup.php?page=_page-update-$page_group_id&id=$id");
?>